import request from '@/utils/request'
// 根据探针ids列表查询探针签核流程
export function getProbeSignatureProcessByProbeIds(probeIds) {
  return request({
    url: '/system/probeSignatureProcess/getProbeSignatureProcessByProbeIds',
    method: 'get',
    params: { probeIds }
  })
}
// 查询签核流程列表
export function listProbeSignatureProcess(query) {
  return request({
    url: '/system/probeSignatureProcess/list',
    method: 'get',
    params: query
  })
}
// 提交校对
export function submitProbeSignatureToVerify(data) {
  return request({
    url: '/system/probeSignatureProcess/submitToVerify',
    method: 'post',
    data: data
  })
}
// 驳回校对
export function rejectProbeSignatureVerify(data) {
  return request({
    url: '/system/probeSignatureProcess/rejectVerify',
    method: 'post',
    data: data
  })
}
// 提交审定
export function submitProbeSignatureToApprove(data) {
  return request({
    url: '/system/probeSignatureProcess/submitToApprove',
    method: 'post',
    data: data
  })
}
// 审定通过
export function submitProbeSignatureToApprovePass(data) {
  return request({
    url: '/system/probeSignatureProcess/submitToApprovePass',
    method: 'post',
    data: data
  })
}
// 审定驳回,退回设计
export function submitProbeSignatureToApproveReject(data) {
  return request({
    url: '/system/probeSignatureProcess/submitToApproveReject',
    method: 'post',
    data: data
  })
}
// 查询签核流程详细
export function getProbeSignatureProcess(id) {
  return request({
    url: '/system/probeSignatureProcess/' + id,
    method: 'get'
  })
}

// 新增签核流程
export function addProbeSignatureProcess(data) {
  return request({
    url: '/system/probeSignatureProcess',
    method: 'post',
    data: data
  })
}

// 修改签核流程
export function updateProbeSignatureProcess(data) {
  return request({
    url: '/system/probeSignatureProcess',
    method: 'put',
    data: data
  })
}

// 删除签核流程
export function delProbeSignatureProcess(id) {
  return request({
    url: '/system/probeSignatureProcess/' + id,
    method: 'delete'
  })
}
